package com.cloudlinkscm.loms.services.base.notify.domain.notifier;

import com.cloudlinkscm.loms.services.base.notify.model.Notification;
import com.cloudlinkscm.loms.services.base.notify.model.entity.Message;


/**
 * 通知解析器
 *
 * <p>
 *     将通知的实体对象解析为发送器{@link Dispatcher}发送通知时所需要的{@link Notification}对象
 * </p>
 *
 * @author : tac
 * @date : 2017/6/16
 */
public interface RequestResolver<MESSAGE extends Message, NOTIFICATION extends Notification> extends Resolver {
    NOTIFICATION doResolve(MESSAGE message);
}
